﻿@model DealKhuyenMaiV2.com.Models.Account
@{
    ViewBag.Title = "Edit";
    Layout = "~/Views/Admin/Shared/_AdminLayout.cshtml";
}
<link href="@Url.Content("~/Content/DefaultThemes/base/jquery.ui.all.css")" rel="stylesheet" type="text/css" />
<script src="../../Scripts/ckfinder/ckfinder.js" type="text/javascript"></script>
<script src="../../Scripts/jquery-ui-1.8.11.min.js" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>
<script src="../../Scripts/ckeditor/ckeditor.js" type="text/javascript"></script>
<script src="http://maps.google.com/maps?file=api&amp;v=2&amp;sensor=false&amp;key=AIzaSyBJYUiP0GUFitcMboSth7nDK61S8IiZyz0"
    type="text/javascript"></script>
<script src="../../Scripts/gMap.js" type="text/javascript"></script>
<script type="text/javascript">
    $(document).ready(function () {
        $('.end').datepicker();
        $('.start').datepicker();
        initializeGmarkerForEdit("map_canvas", "#Latitude", "#Longitude", "#AddressReceive",@Model.Latitude,@Model.Longitude,'@Model.AddressReceive');
        $.tabs('#tabs a');

    });
  


    
</script>
<div class="breadcrumb">
    @Html.ActionLink("Trang Chủ", "Index", "Admin")::@Html.ActionLink("Quản Lý Doanh Nghiệp", "Index", "CompanyManager")
</div>
<div class="box">
    <div class="left">
    </div>
    <div class="right">
    </div>
    <div class="heading">
        <h1 style="background-image: url(../../ContentAdmin/DefaultThemes/image/home.png);">
            Quản lý Doanh Nghiệp</h1>
        <div class="buttons">
            <a onclick="$('form').submit();" class="button"><span>Cập Nhật</span></a> <a  href="@Url.Action("Index")" class="button">
                <span>Hủy</span></a>
        </div>
    </div>
    <div class="content">
        @using (Html.BeginForm())
        {
            @Html.ValidationSummary(true)
   
            <div id="tabs" class="htabs">
                <a tab="#tab_general" class="selected">Tổng quan</a> <a tab="#tab_BanDo" class="">Bản
                    Đồ</a>
            </div>
            <div id="tab_general" style="display: block;">
                <table class="form">
                    @Html.HiddenFor(model => model.IDAccount)
                    @Html.TextBoxFor(m => m.IDTypeAccount, new { @Value = "0", @type = "hidden" })
                    @Html.TextBoxFor(m => m.Password, new { @Value = "0", @type = "hidden" })
                    @Html.TextBoxFor(m => m.DateRegister, new { @Value = "2/2/2012", @type = "hidden" })
                    <tr>
                        <td>
                            <span class="required">*</span> @Html.LabelFor(model => model.FullName) :
                        </td>
                        <td>
                            @Html.TextBoxFor(model => model.FullName, new { @style = "width : 500px" })
                            @Html.ValidationMessageFor(model => model.FullName)
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <span class="required">*</span> @Html.LabelFor(model => model.Email) :
                        </td>
                        <td>
                            @Html.TextBoxFor(model => model.Email, new { @style = "width : 500px" })
                            @Html.ValidationMessageFor(model => model.Email)
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <span class="required">*</span> @Html.LabelFor(model => model.PhoneNumber) :
                        </td>
                        <td>
                            @Html.TextBoxFor(model => model.PhoneNumber, new { @style = "width : 500px" })
                            @Html.ValidationMessageFor(model => model.PhoneNumber)
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <span class="required">*</span> @Html.LabelFor(model => model.AutoReceiveEmail)
                            :
                        </td>
                        <td>
                            @Html.EditorFor(model => model.AutoReceiveEmail)
                            @Html.ValidationMessageFor(model => model.AutoReceiveEmail)
                        </td>
                    </tr>
                     <tr>
                        <td>
                            <span class="required">*</span> @Html.LabelFor(model => model.Active)
                            :
                        </td>
                        <td>
                            @Html.EditorFor(model => model.Active)
                            @Html.ValidationMessageFor(model => model.Active)
                        </td>
                    </tr>
                    @*
                    <tr>
                        <td>
                            <span class="required">*</span> @Html.LabelFor(model => model.DateRegister) :
                        </td>
                        <td>
                            @Html.TextBoxFor(model => model.DateRegister, new {@readonly = "readonly"})
                            @Html.ValidationMessageFor(model => model.DateRegister)
                        </td>
                    </tr>
                    *@
                    <tr>
                        <td>
                            <span class="required">*</span> @Html.LabelFor(model => model.Description) :
                        </td>
                        <td>
                            @Html.TextAreaFor(model => model.Description, new { @cols = "100", @rows = "10" })
                            @Html.ValidationMessageFor(model => model.Description)
                        </td>
                    </tr>
                </table>
            </div>
            
               
            <div id="tab_BanDo">
                <table class="form">
                    <tr>
                        <td>
                            <span class="required">*</span> @Html.LabelFor(model => model.AddressReceive) :
                        </td>
                        <td>
                            @Html.TextBoxFor(model => model.AddressReceive, new { @style = "width : 500px" })
                            @Html.ValidationMessageFor(model => model.AddressReceive)
                        </td>
                    </tr>
                    <tr>
                        <div id="map_canvas" style="width: 100%; height: 500px">
                        </div>
                        <div style="border: 1px; border-color: cornflowerblue; border-style: solid; width: 530px;
                            margin-left: 20%;">
                            <input id="Map2Addr" type="checkbox" />Chuyển map sang địa chỉ
                            <input id="Addr2Map" type="checkbox" />Chuyển địa chỉ sang map
                            <input type="button" value="Select Center" title="Chọn trung tâm là địa điểm của bạn!"
                                id="SelectCenter" />
                            <input type="button" value="Your Location" title="Chọn địa địa hiện tại bạn đang ở!"
                                id="YourLocation" />
                        </div>
                    </tr>
                    <tr>
                        <td>
                            <span class="required">*</span> @Html.LabelFor(model => model.Longitude) :
                        </td>
                        <td>
                            @Html.TextBoxFor(model => model.Longitude, new { @style = "width : 300px", @readonly = "readonly" })
                            @Html.ValidationMessageFor(model => model.Longitude)
                        </td>
                    </tr>
                    <tr>
                        <td>
                            <span class="required">*</span> @Html.LabelFor(model => model.Latitude) :
                        </td>
                        <td>
                            @Html.TextBoxFor(model => model.Latitude, new { @style = "width : 300px", @readonly = "readonly" })
                            @Html.ValidationMessageFor(model => model.Latitude)
                        </td>
                    </tr>
                </table>
            </div>
           
    
        }
    </div>
</div>
